﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FlyingAPI
{
    public class SearchJob
    {
        private static string formatString = "yyyy-MM-dd HH:mm:ss";

        #region properties

        private int searchJobId;

        public int SearchJobId
        {
            get { return searchJobId; }
            set { searchJobId = value; }
        }


        private String concept;

        public String Concept
        {
            get { return concept; }
            set { concept = value; }
        }
        private int total;

        public int Total
        {
            get { return total; }
            set { total = value; }
        }
        private int pageCapacity;

        public int PageCapacity
        {
            get { return pageCapacity; }
            set { pageCapacity = value; }
        }
        private int finishedNum;

        public int FinishedNum
        {
            get { return finishedNum; }
            set { finishedNum = value; }
        }
        private String source;

        public String Source
        {
            get { return source; }
            set { source = value; }
        }
        private String jobState;

        public String JobState
        {
            get { return jobState; }
            set { jobState = value; }
        }

        private String createDate;

        public String CreateDate
        {
            get { return createDate; }
            set { createDate = value; }
        }


        public DateTime getTime()
        {
            return System.DateTime.ParseExact(createDate.Substring(0, 19), formatString, null);
        }


        #endregion properties
    }
}
